package mweb

const UnAuthorized = Tag("UnAuthorized")
const Authorization = Tag("Authorization")
const Encryption = Tag("Encryption")
const UnEncryption = Tag("UnEncryption")
const All = Tag("All")

type Tag string

type Route struct {
	Desc          string
	Method        string
	Path          string
	Tag           []Tag
	HandleAdapter HandleAdapter
	ParamValidate bool
}

type Interceptor func(ctx *RequestContext) (next bool)

type InterceptorStorage *map[Tag]Interceptor

type HandleAdapter func(ctx *RequestContext) (error error, respData interface{})
